package com.yfp.file.service.impl;

import com.yfp.file.domain.ImgResource;
import com.yfp.file.mapper.ImgResourceMapper;
import com.yfp.file.service.ImgResourceService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 图片资源表(ImgResource)表服务实现类
 *
 *
 * @since 2023-12-25 16:15:37
 */
@Service("imgResourceService")
public class ImgResourceServiceImpl implements ImgResourceService {
    @Resource
    private ImgResourceMapper imgResourceMapper;


    /**
     * 新增数据
     *
     * @param imgResource 实例对象
     * @return 实例对象
     */
    @Override
    public ImgResource insert(ImgResource imgResource) {
        this.imgResourceMapper.insert(imgResource);
        return imgResource;
    }


}
